<div class="dashboard_item">
    <a href="#">Mysql indstillinger<img alt="" src="{$cwu}/icon.png" /></a>

    <div class="dashboard_item_content">

        <h3>Indtast Mysql server-oplysninger</h3>
        <div style="background-color:black;color:red;">{$mysql_status}</div>

        Mysql bruger: <input type="text" value="{$mysql_config.mysqluser}" name="mysqluser" /><br/>
        Mysql password: <input value="" type="password" name="mysqlpass" /><br/>
        Mysql server: <input type="text" name="mysqlserver" value="{$mysql_config.mysqlserver}" /><br/>
        Mysql database: <input type="text" name="mysqldb" value="{$mysql_config.mysqldb}" /><br/>
         <h2>Rettigheder for frontend:</h2>
        <input type="radio"  checked="checked" name="frontendrights" value="2">Læs og skriv <br/>
        <input type="radio" name="frontendrights" value="1">Læs<br/>
        <input type="radio" name="frontendrights" value="0">Ingen rettigheder <br/>
        <h2>Rettigheder for backend:</h2>
        <input type="radio" checked="checked" name="backendrights" value="2">Læs og skriv <br/>
        <input type="radio" name="backendrights" value="1">Læs <br/>
        <input type="radio" name="backendrights" value="0">Ingen rettigheder <br/>
        Brug mysql til brugerhåntering<input type="checkbox" {if $mysql_config.mysqluserhandling}checked="checked" {/if} name="mysqluserhandling" value="enabled">
        <br/>
        <input type="submit" value="gem" />

        <div class="clear"></div>

    </div>

</div>
<div class="dashboard_item">
   <a href="#">Mysql tabeller<img alt="" src="{$cwu}/icon.png" /></a>
   {foreach from=$mysql_info item=table key=k}
   <h3>{$k}</h3>
   <table border="1" style="border:1px solid black;width:100%">
       <tr><td>Navn</td><td>Type</td><td>Må være null</td><td>Nøgle</td><td>Standart værdi</td><td>extra</td></tr>
     {foreach from=$table item=field}
       <tr>
            <td>{$field.Field}</td>
            <td>{$field.Type}</td>
            <td>{$field.Null}</td>
            <td>{$field.Key}</td>
            <td>{$field.Default}</td>
            <td>{$field.Extra}</td>
       </tr>
    {/foreach}
   </table>
   {/foreach}
</div>